package queueDemo;

import java.util.ArrayDeque;
import java.util.Deque;
import java.util.LinkedList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wx
 * Date: 2024-04-21
 * Time: 11:04
 */
public class Test {
    public static void main(String[] args) {
        MyLinkQueue myLinkQueue = new MyLinkQueue();
        myLinkQueue.offer(1);
        myLinkQueue.offer(2);
        myLinkQueue.offer(3);
        myLinkQueue.offer(4);

        System.out.println(myLinkQueue.peek());
        System.out.println(myLinkQueue.poll());
        System.out.println(myLinkQueue.poll());

        Deque<Integer> deque = new LinkedList<>();

        Deque<Integer> deque2 = new ArrayDeque<>();

    }
}
